<!doctype html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>响应式原理-计算属性的奥秘</title>
</head>
<body>
    <div id="example-3">
        <input type="text" v-model="msg">
        <p>{{msg2}}</p>
    </div>
    <script src="../lib/vue.js"></script>
<script>
    /*
    *
    * */
    var exampleVm = new Vue({
        el : '#example-3',
        data : {
            msg : 'hello vue.js'
        },
        computed : {
            msg2 : function () {
                return Date.now() + this.msg;
            }
        }
    })
</script>
</body>
</html>